package Leason3;

import java.util.Scanner;

public class Task4 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
			System.out.println("How long your array will be?");
		int L = sc.nextInt();
		
		int[] array = new int [L];
		int numbers;
		System.out.println("Enter the numbers of your array");
		for(int i = 0; i<array.length; i++)
			{
			System.out.println((i+1)+". ");
			numbers = sc.nextInt();
			array[i] = numbers;
			}
	
		boolean  sym = true;
		int del = L/2;
		int a = 0;
		int b = L-1;
		
		for(int i = 1; i <= del; i++)
		{
			if (array[a] == array[b])
			{
				a++;
				b--;
			}
			else
			{
				sym = false;
			}
		}
		
		if (sym == true)
		{
			System.out.println("Your array is symmetric.");
		}
		else
		{
			System.out.println("Your array is not symmetric.");
		}
	}

}
